﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="PopupPrintPhieuBanHang.aspx.cs"
    Inherits="WebTeamplate.Admin_PopupPrintPhieuBanHang" %>

<%@ Import Namespace="WebTeamplate" %>
<%@ Import Namespace="BusinessObject" %>
<%@ Import Namespace="Utility" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
</head>
<body>
    <form id="form1" runat="server">
    <table class="lvtBg" border="0" cellpadding="0" cellspacing="1" width="900px" align="center">
        <tbody>
            <tr>
                <td>
                    <table border="0" style="width: 100%">
                        <td style="width: 60%" align="left" valign="top">
                            <table class="small" border="0" cellpadding="2" cellspacing="5" width="100%">
                                <tr>
                                    <td align="right" class="pnSubTitleLeft1">
                                        Cửa hàng:
                                    </td>
                                    <td class="pnSubTitleRight1">
                                        <%=CommonFunction.CompanyName%>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pnSubTitleLeft1">
                                        Địa chỉ:
                                    </td>
                                    <td class="pnSubTitleRight1">
                                        <%=CommonFunction.CompanyAddress%>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pnSubTitleLeft1">
                                        Điện thoại:
                                    </td>
                                    <td class="pnSubTitleRight1">
                                        <%=CommonFunction.CompanyTel%>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="pnSubTitleLeft1">
                                        Người lập phiếu:
                                    </td>
                                    <td class="pnSubTitleRight1">
                                            <%=nguoiLapPhieu%>
                                    </td>
                                </tr>
                                 <tr>
                                    <td class="pnSubTitleLeft1">
                                        Ngày lập phiếu:
                                    </td>
                                    <td class="pnSubTitleRight1">
                                        <%=ConvertValueObject.ParseString(objPhieuBanHang.NgayLapPhieu) %>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td align="right">
                            <table border="0" class="small" style="width: 83%">
                                <tr>
                                    <td class="titleReport" colspan="2">
                                         PHIẾU BÁO GIÁ
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="pnSubTitleLeft">
                                        Số:
                                    </td>
                                    <td class="pnSubTitleRight">
                                        <%=this.MaPhieu.ToString() %>
                                    </td>
                                </tr>
                                 <tr>
                                    <td align="right" class="pnSubTitleLeft">
                                        Khu:
                                    </td>
                                    <td class="pnSubTitleRight">
                                        <%=kho %>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="pnSubTitleLeft">
                                        Khách hàng:
                                    </td>
                                    <td class="pnSubTitleRight">
                                        <%=objKhachHang.TenKhachHang %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="pnSubTitleLeft">
                                        Địa chỉ:
                                    </td>
                                    <td class="pnSubTitleRight">
                                        <%=objKhachHang.DiaChi%>
                                    </td>
                                </tr>
                               
                            </table>
                        </td>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table class="lvt small" border="0" cellpadding="3" cellspacing="1" width="100%">
                        <!-- Table Headers -->
                        <tbody>
                            <tr>
                                <td class="lvtCol" style="width: 30px;">
                                    STT
                                </td>
                                <td class="lvtCol" style="width: 80px;">
                                    Mã mặt hàng
                                </td>
                                <td class="lvtCol">
                                    Tên mặt hàng
                                </td>
                                  <td class="lvtCol" style="width: 100px;">
                                    Xe
                                </td>
                                <%--<td class="lvtCol" style="width: 90px;">
                                    Nước SX
                                </td>--%>
                                <td class="lvtCol" style="width: 120px;">
                                    Hiệu
                                </td>
                                <td class="lvtCol" style="width: 50px;">
                                    Số lượng
                                </td>
                                <td class="lvtCol" style="width: 70px;">
                                    Đơn vị tính
                                </td>
                                <td class="lvtCol" style="width: 100px;">
                                    Giá đơn vị
                                </td>
                                <td class="lvtCol" style="width: 100px;">
                                    Thành tiền
                                </td>
                            </tr>
                            <!-- Table Contents -->
                            <asp:Repeater ID="rptData" runat="server" OnItemDataBound="rptData_ItemDataBound">
                                <ItemTemplate>
                                    <tr class="lvtColData" onmouseover="this.className='lvtColDataHover'" onmouseout="this.className='lvtColData'"
                                        bgcolor="white">
                                        <td class="repeaterCenterData">
                                            <asp:Literal ID="ltrSTT" runat="server"></asp:Literal>
                                        </td>
                                        <td class="repeaterLeftData">
                                            <%# Server.HtmlEncode(Eval("MaMatHang").ToString())%>
                                        </td>
                                        <td class="repeaterLeftData">
                                            <%# Server.HtmlEncode(Eval("TenMatHang").ToString())%>
                                        </td>
                                         <td class="repeaterLeftData">
                                            <%#GetXe(Eval("MaXe").ToString())%>
                                        </td>
                                      <%--  <td class="repeaterLeftData">
                                            <%# Server.HtmlEncode(Eval("NuocSX").ToString())%>
                                        </td>--%>
                                        <td class="repeaterLeftData">
                                            <%# Server.HtmlEncode(Eval("Hieu").ToString())%>
                                        </td>
                                        <td class="repeaterRightData">
                                            <%#Eval("soLuongBan")%>
                                        </td>
                                        <td class="repeaterLeftData">
                                            <%# Server.HtmlEncode(Eval("DonViTinh").ToString())%>
                                        </td>
                                        <td class="repeaterRightData">
                                            <asp:Literal ID="ltrGia" runat="server"></asp:Literal>
                                        </td>
                                          <td class="repeaterRightData">
                                            <asp:Literal ID="ltrThanhTien" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                  <FooterTemplate>
                                    <tr class="lvtColData">
                                        <td colspan="8" class="repeaterRightData">
                                            Cộng thành tiền
                                        </td>
                                        <td class="repeaterRightData">
                                            <asp:Literal ID="ltrTotal" runat="server">
                                            </asp:Literal>
                                        </td>
                                    </tr>
                                </FooterTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </td>
           
            </tr>
             <tr class="rowDetail">
                    <td>
                       <b> Cộng thành tiền(bằng chữ): &nbsp;</b>
                        <span class="textCurency">
                        <asp:Literal ID="ltrTotalString" runat="server">
                                            Một triệu hai trăn ngàn đồng
                        </asp:Literal>
                        </span>
                    </td>
                </tr>
        </tbody>
    </table>
     
    </form>
</body>
</html>
